package com.koron.order.repair.service;

import com.koron.common.core.business.common.service.CommonService;
import com.koron.order.repair.bean.entity.RepairEquipmentPo;
import com.koron.order.repair.bean.vo.RepairEquipmentVo;
import org.koron.ebs.mybatis.SessionFactory;

import java.util.List;

/**
 * (RepairEquipment)表服务接口
 *
 * @author zhouj
 * @since 2021-09-14 14:25:17
 */
public interface RepairEquipmentService extends CommonService {

    int insert(SessionFactory factory, RepairEquipmentPo repairEquipment);

    int update(SessionFactory factory, RepairEquipmentPo repairEquipment);

    int deleteById(SessionFactory factory, String id);

    int deleteByOrderId(SessionFactory factory, String orderId);

    RepairEquipmentPo queryById(SessionFactory factory, String id);

    List<RepairEquipmentPo> queryList(SessionFactory factory, RepairEquipmentPo repairEquipment);

    int insertBatch(SessionFactory factory, List<RepairEquipmentPo> repairEquipmentPoList);

    List<RepairEquipmentVo> queryByOrderId(SessionFactory factory, String orderId);

}
